package com.dome.order.feign;

import com.dome.order.entity.dto.OrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "alibaba-order", path = "/order/feign"
/*,fallbackFactory = OrderClientFallBackFactory.class*/)
public interface OrderClient {

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    @GetMapping("/selectById/{id}")
    OrderDto selectById(@PathVariable("id") Long id);
}
